package com.springboot.rabbitmq;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class RabbitmqApplication {

    public static void main(String[] args) {
        SpringApplication.run(RabbitmqApplication.class, args);
//        ConfigurableApplicationContext context = SpringApplication.run(RabbitmqApplication.class, args);
//        RabbitTemplate rabbitTemplate = (RabbitTemplate) context.getBean("rabbitTemplate");
//        rabbitTemplate.convertAndSend("logs","","fanout模型消息");
    }

}
